package com.zh.springcloud.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * @Description:
 * @ClassName Account
 * @date: 2021.08.12 18:39
 * @Author: zhanghang
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("t_account")
public class Account {
	@ApiModelProperty(value = "主键id")
	private Long id;

	@ApiModelProperty(value = "用户id")
	private Long userId;

	@ApiModelProperty(value = "总额度")
	private BigDecimal total;

	@ApiModelProperty(value = "已用余额")
	private BigDecimal used;

	@ApiModelProperty(value = "剩余可用余额")
	private BigDecimal residue;
}
